package com.ljx.sso.feign;

import com.ljx.entity.BusinessInfo;
import com.ljx.entity.EmpInfo;
import com.ljx.entity.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "cai-system")
public interface BUsinessFeign {
	//建议:如果是服务之间的调用直接返回对象，如果是前端调用CommonResult
	@GetMapping("/system/business/getByTel/{telephone}")
	public BusinessInfo getByTel(@PathVariable String telephone);
}
